package com.joshjung.echosurf.event
{
    import flash.events.Event;

    /**
     * Communicates the death of a peer - meaning a disconnect.
     *
     * @author jjung
     */
    public class ESLeaveEvent extends Event
    {
        //---------------------------------------------------------------------
        //
        //  Static Variables
        //
        //---------------------------------------------------------------------
        public static const PEER_LEAVE : String = "peerLeave";

        //---------------------------------------------------------------------
        //
        //  Variables
        //
        //---------------------------------------------------------------------
        public var clientID : int;

        //---------------------------------------------------------------------
        //
        //  Constructor
        //
        //---------------------------------------------------------------------
        /**
         *  Constructor
         */
        public function ESLeaveEvent(clientID : int, bubbles : Boolean = false, cancelable : Boolean = false)
        {
            super(PEER_LEAVE, bubbles, cancelable);

            this.clientID = clientID;
        }
    }
}
